package com.qd.pay.domain;

import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import com.cdqidi.valid.group.DeleteGroup;
import com.cdqidi.valid.group.UpdateGroup;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * 退款单扩展参数
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class OrderRefundParamsDTO extends BaseQuery {

    /**
     * 主键
     */
    @NotBlank(message = "结果ID不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    @Size(max = 50, message = "结果ID长度不能超过{max}位", groups = {DeleteGroup.class, UpdateGroup.class})
    private String rid;
    /**
     * 扩展参数
     */
    @NotBlank(message = "扩展参数不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "扩展参数长度不能超过{max}位", groups = DefaultGroup.class)
    private String paramExt;
    /**
     * 订单ID
     */
    @NotBlank(message = "订单ID不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "订单ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String orderId;

    @Override
    public void freeData() {
        this.rid = null;
        this.paramExt = null;
        this.orderId = null;
        super.freeData();
    }
}
